<%-- 
    Document   : index
    Created on : Feb 27, 2012, 5:18:25 PM
    Author     : Wei Chen <acee06.weichen@gmail.com>
--%>

<%@page import="org.chenwei.week10.DBManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
    DBManager dbmanager = new DBManager();
    session.setAttribute("dbmanager", dbmanager);
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Welcome to student management web site!</title>

        <style type="text/css">
            #main {
                text-align: right;
                margin-top: 50px;
            }
            
            .text {
                width: 180px;
                text-align: right;
                font-weight: bold;
            }
            
            .button {
                width: 80px;
            }
            
            body {
                text-align: center;
            }
            
            table {
                margin: auto;
            }
            
            button {
                width: 80px;
            }
            
            tr,td {
                padding-top: 3px;
                padding-left: 6px;
                padding-right: 6px;
                margin: 3px;
            }
        </style>
    </head>
    <body>
        <h1>Welcome to student management web site!</h1>
        <div id="main">
            <table>
                <tr>
                    <td>
                        <div class="text">
                            Register a new student: 
                        </div>
                    </td>
                    <td>
                        <div class="button">
                            <button onclick="window.location='register.jsp';" value="">Register</button>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="text">
                            Get student information: 
                        </div>
                    </td>
                    <td>
                        <div class="button">
                            <button onclick="window.location='info.jsp';" value="">Information</button>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </body>
</html>
